package net.mfjassociates.financial.expense.client.managed.ui;

import com.google.gwt.requestfactory.ui.client.ProxyRenderer;
import net.mfjassociates.financial.expense.client.managed.request.ReportProxy;

public class ReportProxyRenderer extends ProxyRenderer<ReportProxy> {

    private static net.mfjassociates.financial.expense.client.managed.ui.ReportProxyRenderer INSTANCE;

    protected ReportProxyRenderer() {
        super(new String[] { "shortName" });
    }

    public static net.mfjassociates.financial.expense.client.managed.ui.ReportProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new ReportProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(ReportProxy object) {
        if (object == null) {
            return "";
        }
        return object.getShortName() + " (" + object.getId() + ")";
    }
}
